package org.example.login.Strategy;


import org.example.feign.pojo.Customer;
import org.example.feign.pojo.UserInfo;
import org.example.feign.pojo.UserInfo1;

public class ConcreteStrategyA implements Strategy {


    @Override
    public Customer getCustomer() {
        return customer;
    }

    public void strategyMethod(UserInfo userInfo, String code, UserInfo1 userInfo1) {

        String nickName = userInfo.getNickName();

        String avatarUrl = userInfo.getAvatarUrl();

        System.out.println("NickName: " + nickName);
        System.out.println("AvatarUrl: " + avatarUrl);

        customer.setCode(code);

        customer.setNickName(nickName);

        customer.setAvatarUrl(avatarUrl);

    }
}
